<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="./test.js"></script> -->
</head>

<body>
    <script type="module">
        // 模块化功能  
        import { a, b } from './test.js'
        console.log(a);
        b()

        import { c as abc, d } from './test.js' //取别名
        console.log(abc);
        import ef from './test.js'
        console.log(ef.e);
    </script>
</body>

</html>